﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace ToolManager.Common
{
    public class ConnectionStrings
    {
        protected readonly IConfiguration _configuration;
        public ConnectionStrings(IConfiguration configuration)
        {
            _configuration = configuration;
        }

        public string storageConnectionString { get { return _configuration.GetConnectionString("storageCon"); } }
        public int isDebug { get { return int.Parse(_configuration.GetSection("isDebug").Value); } }

    }
}
